﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Estore.Models
{
    public interface IEstoreRepository
    {
        //user
        User ValidateUser(string loginName, string password);
        User finduserbyloginname(string loginname);
        void addusers(User u);
        //product
        IQueryable<Product> FindAllProduct();
        IQueryable<Product> FindProductById(int id);
        // category
        IQueryable<Category> Findcategory();
        IQueryable<Category> Findsubcategory(int id);
        void addcategory(Category cate);
        //
        void commitchange();
        
    }
}